{%include file="header.html"%}
<div class="fixed-bar">
  <div class="item-title">
    <h3>系统信息</h3>
  </div>
</div>
<div class="fixed_bottom">
	<div class="massage">
    	<div class="massage_l"><img src="{%$URL%}resource/images/System.gif" /></div>
        <div class="massage_r">
        	<div class="massage_r_b"><b>{%$msg_detail%}</b></div>
            {%if $auto_redirect%}<div class="massage_r_span"><span>若不选择 <span id="spanSeconds">3</span>秒 将自动跳转</span></div>{%/if%}
            <div class="massage_r_a">
            
            	{%foreach from=$links item=list%}
                <button onClick="{%if $list.href%}javascript:location.href='{%$list.href%}'{%else%}javascript:history.go(-1);{%/if%}">{%$list.text%}</button>
                {%/foreach%}
            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>
{%if $auto_redirect%}
<script language="JavaScript">
var seconds = $("#spanSeconds").text();
var defaultUrl = "{%$default_url%}";
window.setInterval(redirection, 1000);
function redirection()
{
  if (seconds <= 0){
    window.clearInterval();
    return;
  }
  seconds --;
  $("#spanSeconds").text(seconds);
  if (seconds == 0){
    window.clearInterval();
	location.href = defaultUrl;
  }
}
</script>
{%/if%}